package com.orm.handler;

import java.sql.*;
import java.util.Date;


/**
 *
 */
public class DoubleTypeHandler extends BaseTypeHandler<Double> {
	@Override
	public void setNotNullParameter(PreparedStatement ps, int i, Double parameter, JDBCType jdbcType) throws SQLException {
		ps.setDouble(i, parameter);
	}
	
	@Override
	public Double getNullableResult(ResultSet rs, String columnName) throws SQLException {
		return rs.getDouble(columnName);
	}
	
	@Override
	public Double getNullableResult(ResultSet rs, int columnIndex) throws SQLException {
		return rs.getDouble(columnIndex);
	}
}
